<template>
  <div>
      <span>{{label}}</span>
      <span>
        <slot></slot>
      </span>
  </div>
</template>

<script>
// import { bus } from './form-bus'
export default {
  props: {
    label: String,
    prop: String
  },
  inject: ['form'],
  mounted () {
    console.log(this.prop)
    console.log(this.form.ruleForm[this.prop])
  }
}
</script>
